package com.querycenter.serviceimpl;

import java.util.ArrayList;
import java.util.List;

import com.querycenter.model.DataAFiledAClass;
import com.querycenter.model.UserInfo;
import com.querycenter.serviceinter.AuthManageServiceInter;
import com.querycenter.mapper.AuthManageMapper;

public class AuthManageServiceImpl implements AuthManageServiceInter {

	private AuthManageMapper AuthManageMapper = null;

	public List<UserInfo> selectAllUser() {
		List<UserInfo> u = new ArrayList<UserInfo>();
		u = AuthManageMapper.selectAllUser();
		return u;
	}

	public List<DataAFiledAClass> selectAllCondition() {

		List<DataAFiledAClass> u = new ArrayList<DataAFiledAClass>();
		u = AuthManageMapper.selectAllCondition();
		return u;
	}

	public List<DataAFiledAClass> selectAllResult() {

		List<DataAFiledAClass> u = new ArrayList<DataAFiledAClass>();
		u = AuthManageMapper.selectAllResult();
		return u;
	}

	public void addObject_user(int userid, int objectid) {

		DataAFiledAClass d = new DataAFiledAClass();
		d.setUserid(userid);
		d.setObjectid(objectid);
		AuthManageMapper.addObject_user(d);
	}

	public void addClassify_user(int userid, int classifyid) {

		DataAFiledAClass d = new DataAFiledAClass();
		d.setUserid(userid);
		d.setClassifyid(classifyid);
		AuthManageMapper.addClassify_user(d);
	}

	public void addField_user(int userid, int fieldid) {

		DataAFiledAClass d = new DataAFiledAClass();
		d.setUserid(userid);
		d.setFieldid(fieldid);
		AuthManageMapper.addField_user(d);
	}

	public AuthManageMapper getAuthManageMapper() {
		return AuthManageMapper;
	}

	public void setAuthManageMapper(AuthManageMapper authManageMapper) {
		AuthManageMapper = authManageMapper;
	}
}
